package com.example.combwx.mvp.view.people;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import com.example.combwx.R;
import com.example.combwx.network.LoadImage;
import com.flyco.tablayout.SlidingTabLayout;
import com.google.android.material.appbar.AppBarLayout;

public class ConsumerActivity extends AppCompatActivity {
    private AppBarLayout webValuesAppbar;
    private ImageView back;
    private SlidingTabLayout authorSlidtab;
    private ViewPager vpPage;
    private TextView authorTv;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_author_values);
        initView();
        String img = getIntent().getStringExtra("img");
        String text = getIntent().getStringExtra("text");
        LoadImage.loadRoundImg(img, back,100);
        authorTv.setText(text);

    }

    private void initView() {
        webValuesAppbar = (AppBarLayout) findViewById(R.id.web_values_appbar);
        back = (ImageView) findViewById(R.id.back);
        authorSlidtab = (SlidingTabLayout) findViewById(R.id.author_slidtab);
        vpPage = (ViewPager) findViewById(R.id.vp_page);
        authorTv = (TextView) findViewById(R.id.author_tv);
    }
}
